pyqt5 change button color

77

pyqt5 change button color -

self.pushButton.setStyleSheet("background-color: red")

pyqt change button color -

QPushButton button1, button2, button3;

button1.setStyleSheet("background-color: red");

button2.setStyleSheet("background-color:#ff0000;");

button3.setStyleSheet("background-color:rgb(255,0,0)");

change color of text button pyqt5 -

setStyleSheet('QPushButton {background-color: #A3C1DA; color: red;}')

Comments

Submit
0 Comments